package com.xhwl.logistics.controller.logistics;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;


/**
 * <p></p>
 * 复用安防点位管理
 * @Author: zsm
 * @Date: 2021-03-16
 */
@RestController
@Slf4j
@Api(tags = "点位垛口分组")
@RequestMapping("crenel")
public class PointController {

  /*  @Autowired
    private IPointFegin pointService;

    *//**
     * 新增分组
     *
     * @param groupPointVO 分组
     * @return 新增结果
     *//*
    @ApiOperation(value = "新增垛口分组")
    @RequestMapping(value = "/point/add-point-group", method = RequestMethod.POST)
    ResultJson addGroupPoint(@RequestBody GroupPointVO groupPointVO,
                             @RequestHeader("industryId") Short industryId) {

        return pointService.addGroupPoint(groupPointVO,industryId);
    }


    *//**
     * 查询分组详情
     *
     * @param groupPointId 分组 id
     * @return 分组详情
     *//*
    @ApiOperation(value = "获取垛口分组详情")
    @RequestMapping(value = "/point/get-pointgroup", method = RequestMethod.POST)
    ResultJson getGroupPoint(@RequestBody Integer groupPointId,
                             @RequestHeader("industryId") Short industryId) {

        return pointService.getGroupPoint(groupPointId, industryId);
    }

    *//**
     * 分页查询分组
     *
     * @param groupPointPageQuery 查询对象
     * @return 分组分页
     *//*

    @ApiOperation(value = "分页获取垛口分组")
    @RequestMapping(value = "/point/get-pointgroup-page", method = RequestMethod.POST)
    ResultJson getGroupPointPage(@RequestBody GroupPointPageQuery groupPointPageQuery,
                                 @RequestHeader("industryId") Short industryId) {
        log.info("getGroupPointPage() called with parameters => 【groupPointPageQuery = {}】, 【industryId = {}】",groupPointPageQuery, industryId);
        return pointService.getGroupPointPage(groupPointPageQuery,industryId);
    }


    @ApiOperation(value = "删除垛口分组")
    @RequestMapping(value = "/point/delete-point-group", method = RequestMethod.POST)
    ResultJson deleteGroupPoint(@RequestBody Integer groupPointId,
                                @RequestHeader("industryId") Short industryId) {
        log.info("deleteGroupPoint() called with parameters => 【groupPointId = {}】, 【industryId = {}】",groupPointId, industryId);
        return pointService.deleteGroupPoint(groupPointId,industryId);
    }*/






}
